<template>
	<view class="container">
		<navigate :title="pageTitle"></navigate>
		
		<view :style="{marginTop:contentTop + 'px'}">
			<jyf-parser :html="content" ref="article" :lazy-load="true"></jyf-parser>
		</view>
		
	</view>
</template>
<script>
	import jyfParser from "@/components/jyf-parser/jyf-parser";
	export default {
		components: {
			jyfParser
		},
		data() {
			return {
				pageTitle:'',
				contentTop:'',
				
				skey:'',
				content:'',
			}
		},
		onLoad(e){
			this.$com.getStatusBarHeight((res)=>{
				this.contentTop = res.content_top;
			});
			
			this.pageTitle = e.title;
			this.skey = e.skey;
			
			this.getAppSite();
		},
		methods: {
			preview(){
				
			},
			navigate(){
				
			},
			getAppSite(){
				var _this = this;
				var param = {};
				_this.$appData.plat.getAppHtml({skey:_this.skey},function(html){
					_this.content = html;
				})
			},
		}
	}
</script>
<style>
.container{float:left;width:96%;margin:10upx 2%;background:#fff;}
</style>
